package com.cw.japp

class Client {

	Boolean allowRecording
	String avsettings
	Long broadcastId
	Date connectedSince
	String externalUserId
	String externalUserType
	String firstname
	Long recordingId
	Boolean isBroadcasting
	Boolean isRecording
	String lastname
	String pictureUri
	String publicSid
	Date roomEnter
	String roomRecordingName
	String streamPublishName
	Boolean streamPublishStarted
	String streamId
	String userColor
	String userIp
	String userName
	Integer status
	Date lastModifiedDate
	Date createdDate
	User user
	Room room

	static belongsTo = [Room, User]

	static mapping = {
		id column: "client_id"
		version false
	}

	static constraints = {
		allowRecording nullable: true
		avsettings nullable: true
		broadcastId nullable: true
		connectedSince nullable: true
		externalUserId nullable: true
		externalUserType nullable: true
		firstname nullable: true
		recordingId nullable: true
		isBroadcasting nullable: true
		isRecording nullable: true
		lastname nullable: true
		pictureUri nullable: true
		publicSid nullable: true
		roomEnter nullable: true
		roomRecordingName nullable: true
		streamPublishName nullable: true
		streamPublishStarted nullable: true
		streamId nullable: true
		userColor nullable: true
		userIp nullable: true
		userName nullable: true
		status nullable: true
		lastModifiedDate nullable: true
		createdDate nullable: true
	}
}
